﻿using System.Collections.Generic;

namespace MvcWebScraper.Core.Parsers
{
	public class DoCoMoCIDRParser : MobileCIDRScraper<List<string>>
	{
		protected override List<string> Parser(HtmlAgilityPack.HtmlDocument document)
		{
			var cidr = new List<string>();
			foreach (var li in document.DocumentNode.SelectNodes("/html/body/div[@id='contentswrap']/div[@id='mainwrap']/div[@id='leftcol']/div[@id='maincol']/div[2]/div/div/ul[1]/li"))
			{
				cidr.Add(li.InnerText);
			}
			return cidr;
		}
	}
}
